<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   </head>
   <link rel="stylesheet" href="../OrteliusFrame/style.css" type="text/css" media="screen">
   <body>
      <div class="classDetails" ID="com.combiform.core.IO_Handler">
         <div class="classTitle">IO_Handler</div>
         <div class="summary">IO_Handler class is where input events are mapped to the custom  IR_Event class. This allows a loose coupling between the
            game code and the Combiform library code.<br/>
         </div>
         <div class="detailHeader">Details</div>
         <div id="div|details" class="detailsVisible">
            <div class="detailElement"><b>Package: </b>com.combiform.core
            </div>
            <div class="detailElement"><b>File modified: </b>26/1 2011
            </div>
            <div class="detailElement"><b>Author: </b>Andy Uehara<br/>
            </div>
            <div class="detailElement"><b>Inheritance: </b>IO_Handler<b>→</b><a target="contentFrame" href="#flash.events.EventDispatcher.html">EventDispatcher</a></div>
         </div>
         <div class="detailHeader">Imported packages</div>
         <div id="div|import" class="detailsVisible">
            <div class="detailElement"><a href="#flash.display.Stage.html"><span class="codeLine">flash.display.Stage</span></a></div>
            <div class="detailElement"><a href="#flash.events.EventDispatcher.html"><span class="codeLine">flash.events.EventDispatcher</span></a></div>
            <div class="detailElement"><a href="#flash.events.KeyboardEvent.html"><span class="codeLine">flash.events.KeyboardEvent</span></a></div>
            <div class="detailElement"><a href="#flash.events.MouseEvent.html"><span class="codeLine">flash.events.MouseEvent</span></a></div>
         </div>
         <div class="detailHeader">Public methods</div>
         <div id="div|publicmethod" class="detailsVisible">
            <table border="0" cellpadding="0" cellspacing="0" class="methodPropertyTabel">
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.IO_Handler_8.html" title="public function IO_Handler(st:Stage, uk:Boolean=true, um:Boolean=false):void">IO_Handler</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif" title=""></td>
                  <td class="methodPropertySummary">constructor<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.HandleKbdDown_Input_13.html" title="public function HandleKbdDown_Input(kevent:KeyboardEvent):void">HandleKbdDown_Input</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">This function is used to handle standard flash keyboard events when a user pushes the a button down. These keyboard events
                     should be mapped to IR_Event. You should include case 187 until a small hardware issue is fixed.<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.HandleKbdUp_Input_14.html" title="public function HandleKbdUp_Input(kevent:KeyboardEvent):void">HandleKbdUp_Input</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">This function is used to handle standard flash keyboard events when a user releases a button. These keyboard events should
                     be mapped to IR_Event.<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.HandleMC_Input_18.html" title="public function HandleMC_Input( irevent:IR_Event):void">HandleMC_Input</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">This function is used to handle the incoming IR_Events from the controllers. These microcontroller events are just rethrown.<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.HandleMouseClick_15.html" title="public function HandleMouseClick(me:MouseEvent):void">HandleMouseClick</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">This function is used to handle standard flash mouse events when a user clicks their mouse. These mouse events should be mapped
                     to IR_Event.<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.HandleMouseDoubleClick_16.html" title="public function HandleMouseDoubleClick(me:MouseEvent):void">HandleMouseDoubleClick</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">This function is used to handle standard flash mouse events when a user double clicks their mouse. These mouse events should
                     be mapped to IR_Event.<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.HandleMouseMove_17.html" title="public function HandleMouseMove(me:MouseEvent):void">HandleMouseMove</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">This function is used to handle standard flash mouse events when a user moves their mouse. These mouse events should be mapped
                     to IR_Event.<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.frameH_10.html" title="public function frameH():void">frameH</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">This function gets called every frame tick and polls all the input sources<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.requestEvent_12.html" title="public function requestEvent(ir:IR_Event):void">requestEvent</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">This function is used to pass IR_Events to the controllers. This is used to get status of the controller if an event was missed
                     or for manual polling.<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.sendEvent_11.html" title="public function sendEvent(ir:IR_Event):void">sendEvent</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">This function is used to pass IR_Events to the controllers. This is the function to use if you want to change LEDs for example.
                     If a controller is not connected, the arduino handler code will handle the event.<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.unregisterListener_9.html" title="public function unregisterListener():void">unregisterListener</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">This function unregisters keyboard event listeners<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
            </table>
            <div class="modifierExplanation"><img src="../OrteliusFrame/staticmodifier.gif">=static | <img src="../OrteliusFrame/overridenmodifier.gif">=overridden | <img src="../OrteliusFrame/dynamicmodifier.gif">=dynamic  | <img border="0" src="../OrteliusFrame/inheritedmodifier.gif">=inherited
               
            </div>
         </div>
         <div class="detailHeader">Public properties</div>
         <div id="div|publicproperties" class="detailsVisible">
            <table border="0" cellpadding="0" cellspacing="0" class="methodPropertyTabel">
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.a_h_3.html">a_h</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">a_h: Arduino_Handler1 manages the connection to the controllers. This class has only two touch points that should be incorporated
                     in the inherited classes: 1) in the frameH, 2) in the KeyboardHandler. The frameH piece is needed to get timely input. The
                     Keyboardhandler is there to reset the connections with the controllers. This is a temporary fix to some hardware issues that
                     we have<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.arduino_version_4.html">arduino_version</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary">arduino_version: String. This maybe used in the future if to switch to different versions of the arduino handler<br/><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.debug_7.html">debug</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.keyboard_h_2.html">keyboard_h</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.using_keyboard_6.html">using_keyboard</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
               <tr class="methodPropertyLine">
                  <td class="methodPropertyTitle"><img src="../OrteliusFrame/arrowright.gif" border="0" height="9" width="15"><a target="contentFrame" href="com.combiform.core.IO_Handler.using_mouse_5.html">using_mouse</a></td>
                  <td class="methodPropertyModifiers"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
                  <td class="methodPropertySummary"><img border="0" src="../OrteliusFrame/modifier.gif"></td>
               </tr>
            </table>
            <div class="modifierExplanation"><img src="../OrteliusFrame/staticmodifier.gif">=static | <img src="../OrteliusFrame/overridenmodifier.gif">=overridden | <img src="../OrteliusFrame/dynamicmodifier.gif">=dynamic  | <img border="0" src="../OrteliusFrame/inheritedmodifier.gif">=inherited
               
            </div>
         </div>
      </div>
   </body>
</html>